﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" culture="auto" meta:resourcekey="PageResource1" uiculture="auto"
CodeFile="ContainerModelAdd.aspx.cs" Inherits="SystemManage_ContainerModelAdd" Title="编辑柜型资料" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="编辑柜型资料" meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
       <%-- <tr>
            <td align="right">
                <label for="username">
                    <b style="color: Red">*</b></label><asp:Label ID="lblCode" runat="server" Text="编号：" meta:resourcekey="lblCodeResource1"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblUpCode" runat="server" Enabled="False" 
                    meta:resourcekey="lblUpCodeResource1"></asp:Label>
                <asp:TextBox ID="txtCode" runat="server" Width="172px" MaxLength="50" 
                    ValidationGroup="model" meta:resourcekey="txtCodeResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqvalCode" runat="server" ControlToValidate="txtCode" meta:resourcekey="rqvalCodeResource1"
                    ErrorMessage="编号不能为空" ValidationGroup="model"></asp:RequiredFieldValidator>
            </td>
        </tr>--%>
        
        <tr>
            <td align="right">
                <label for="username">
                    <b style="color: Red">*</b></label><asp:Label ID="lblModel" runat="server" Text="柜型名称：" meta:resourcekey="lblModelResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtModel" runat="server" Width="172px" MaxLength="50" 
                    ValidationGroup="model" meta:resourcekey="txtModelResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtModel" meta:resourcekey="RequiredFieldValidator1Resource1"
                    ErrorMessage="名称不能为空" ValidationGroup="model"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
       <%-- <tr>
            <td align="right">
                <asp:Label ID="lblType" runat="server" Text="类型：" meta:resourcekey="lblTypeResource1"></asp:Label>
            </td>
            <td>
               <asp:TextBox ID="txtType" runat="server" meta:resourcekey="txtTypeResource1"></asp:TextBox>
            </td>
        </tr>--%>
        <tr>
            <td align="right">
               <label for="username">
                    <b style="color: Red">*</b></label>  <asp:Label ID="lblVolUpperLimit" runat="server" Text="体积上限：" meta:resourcekey="lblVolUpperLimitResource1"></asp:Label>
            </td>
            <td>
              <asp:TextBox ID="txtVolUpperLimit" runat="server" 
                    meta:resourcekey="txtVolUpperLimitResource1" ValidationGroup="model" ></asp:TextBox>
                      <asp:RequiredFieldValidator ID="valrPrice" runat="server" ControlToValidate="txtVolUpperLimit"
                                    ErrorMessage="*" Display="Dynamic"  ValidationGroup="model" meta:resourcekey="valrPriceResource1"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="varcPrice" ValidationGroup="model" runat="server" Display="Dynamic" ErrorMessage="VolUpperLimit should be float greater than zero"
                                    ControlToValidate="txtVolUpperLimit" Operator="GreaterThan" Type="Double" ValueToCompare="0" meta:resourcekey="varcPriceResource1"></asp:CompareValidator>
            </td>
        </tr>
        
         <tr>
            <td align="right">
                <label for="username">
                    <b style="color: Red">*</b></label> <asp:Label ID="lblVolLowerLimit" runat="server" Text="体积下限：" meta:resourcekey="lblVolLowerLimitResource1"></asp:Label>
            </td>
            <td>
              <asp:TextBox ID="txtVolLowerLimit" runat="server" 
                    meta:resourcekey="txtVolLowerLimitResource1" ValidationGroup="model" ></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="model" runat="server" ControlToValidate="txtVolLowerLimit"
                                    ErrorMessage="*" Display="Dynamic" meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator1" ValidationGroup="model" runat="server" Display="Dynamic" ErrorMessage="VolLowerLimit should be float greater than zero"
                                    ControlToValidate="txtVolLowerLimit" Operator="GreaterThan" Type="Double" ValueToCompare="0"  meta:resourcekey="CompareValidator1Resource1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblRemark" runat="server" Text="备注：" meta:resourcekey="lblRemarkResource1"></asp:Label>
            </td>
            <td>
            <textarea id="txtRemark" runat="server" cols="25" rows="5"></textarea>
            </td>
        </tr>        
         <tr>
            <td align="right">
                 <asp:Label ID="lblUserStatus" runat="server" Text="状态：" meta:resourcekey="lblUserStatusResource1"></asp:Label>
            </td>
            <td>
                 <asp:RadioButton ID="radYes" runat="server" Checked="True" Text="有效" 
                     GroupName="status" meta:resourcekey="radYesResource1" /><asp:RadioButton
                        ID="radNo" runat="server" Text="无效" GroupName="status" 
                     meta:resourcekey="radNoResource1" />
            </td>
        </tr>
        
    </table>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" 
                    CssClass="btn" ValidationGroup="model" meta:resourcekey="btnSaveResource1" />
               &nbsp; <asp:Button ID="btnReset" runat="server" Text="返回" class="adminbtn" 
                    CssClass="btn" OnClick="btnReset_Click" meta:resourcekey="btnResetResource1" />

            </td>
        </tr>
    </table>      
</asp:Content>


